﻿using Koala.Pro.Common;
using Koala.Pro.Core.Dto;
using Koala.Pro.Core.Models;

namespace Koala.Pro.Services.Role
{
    public interface IRoleDataService : IMyCrudService<RoleDataInfo, string, RoleDataPagedDto>, ITransientDependency, IDependency
    {
        Task<RoleDataInfo> FindByRoleId(int roleId);

        Task<Dictionary<int, int>> GetRoleDataDict(int roleID);

        Task<bool> UpdateRoleData(int roleId, string belongCompanys, string belongDepts);

        Task<List<int>> GetBelongCompanysByUser(int userId);

        Task<List<int>> GetBelongDeptsByUser(int userId);

        Task<List<RoleDataInfo>> FindByUser(int userId);
    }
}
